-- GENERATED SPELL FOR [Magnataur Huntress] --


function spell0_24469(pUnit, Event) --@Tusk Strike,n/a--
pUnit:FullCastSpellOnTarget(50410,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24469', 571, 1)
end

function spell1_24469(pUnit, Event) --@War Stomp,Self--
pUnit:FullCastSpellOnTarget(11876,pUnit)
pUnit:RegisterEvent('Sorts_24469', 5301, 1)
end

function Sorts_24469(pUnit, Event)
local choix_sorts_24469 = math.random(0, 1)
if choix_sorts_24469 == 0 then
pUnit:RegisterEvent('spell0_24469', 1, 1)
end
if choix_sorts_24469 == 1 then
pUnit:RegisterEvent('spell1_24469', 1, 1)
end
end

function mob24469_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24469', math.random(1500, 3000), 1)
end

function mob24469_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24469_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24469_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24469, 1, 'mob24469_Action')
RegisterUnitEvent(24469, 2, 'mob24469_Leave')
RegisterUnitEvent(24469, 3, 'mob24469_Kill')
RegisterUnitEvent(24469, 4, 'mob24469_Die')
